class FileUrl {
  setFillUrl(value) {
    let date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let day = date.getDate();
    let hour = date.getHours();
    let minute = date.getMinutes();
    let second = date.getSeconds();
    let text = `farm_jdcx/${year}/${month}/${day}/${hour}${minute}${second}`;
    return `${text}.${value}`
  }
  setPath() {
    let date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let day = date.getDate();
    let text = `${year}/${month}/${day}`;
    return `${text}`
  }
}

export default new FileUrl();
